project(ip2region LANGUAGES CXX)

file(GLOB SRCS "./*.cc")

foreach(cppfile IN LISTS SRCS)
    message(STATUS "ip2region processing cpp: ${cppfile}")
endforeach()

add_library(ip2region-static STATIC
    ${SRCS}
)

target_compile_options(ip2region-static PRIVATE "-fPIC")

target_include_directories(ip2region-static PUBLIC
    ${ip2region_SOURCE_DIR}/
)

# target_link_libraries(ip2region-static PUBLIC
#     # ws2_32

# )
